﻿@model DataEntity.SysRole
<div class="div_center">

    @using (Html.BeginForm("", "", FormMethod.Post, new { id = "Rolefm", name = "Rolefm" }))
    { 
        <fieldset class="datebox-button" style="height: auto; text-align: left; padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px;">
            <legend class="panel-title">角色信息</legend>


           <table class="TableBlock">
           
            <tr>
             
                <td  class="TableLabel" >
                    @Html.HiddenFor(model=>model.ID)
                  角色名字:
                </td>
                <td class="TableData">
                   @Html.TextBoxFor(model => model.Name)
                       
                </td>
                 <td  class="TableLabel" >
             
                  角色编码：
                </td>
                <td class="TableData">
                  @Html.TextBoxFor(model => model.Code, new {style="width:100px" })
                       
                </td>
            </tr>

            <tr>
                <td  class="TableLabel">
                    备注:
                </td>
                <td class="TableData" colspan="3">
                    
                        @Html.TextAreaFor(model => model.Remark, new { cols = "3", rows = "4", style = "height:70px;width:500px; text-align: left;" })
                       
                </td>
            </tr>
        </table>

        </fieldset>
    }

</div>


<script>
    $(function () {

      
        var _form = $("#Rolefm");

        var _key = $("#ID", _form).val();

        var _bindControl = function () {
            $("#Name", _form).validatebox({ required: true });
            $("#Code", _form).validatebox({ required: true });
        };

        _bindControl();

    });
  

</script>
